package net.loyintean.pearlshell.validation;

public interface IValidRule {
	/**
	 * 定义IValidRule的接口
	 * @param toValid 验证的对象
	 * @param config 验证的规则
	 * @return
	 */

	boolean valid(Object toValid, IValidRuleConfig config);

	String errorMsg(IValidRuleConfig config);

}
